Android was ported to the N9 by a handful of volunteers. ASUS developed the highly desirable Nexus 7 Tablet within four months.
If Nokia wanted to bring an Android device to market, they could have certainly done so. Even if that meant to run Android on a phone which was in the pipeline for a different OS. And they would have sold enough of it to keep the company afloat.