Just reflash any stock firmwares, update the profiles and flash back to CM again. Alternatively, there seems to be a multiboot solution that lets you temporaily boot a stock firmware from SD card, though I'm not sure if it works with your ROM...
Sent from Google Nexus 4 @ CM11
Google Nexus 4 (CM11 Nightly)
Motorola Droid RAZR M (CM11 Nightly for JB BL)
Sony Xperia SP (CM11 Nightly)
Google Nexus 7 (2013, WiFi) (CM11 Nightly)
Samsung Galaxy Gear (Null_ Build 23)
Samsung Galaxy S WiFi 4.0 (CM10.2 Unofficial
Nokia N86 8MP (RM-484 30.009 Pre-Hacked)
Multi-core smartphones are like M&Ms:
They don't melt on the store shelf... Just in your hands.