TIMOB-14068: Fail to run BlackBerry if the platform is enabled after alloy project is created

Back port the fix into the 3_1_X branch.