Fixes blackberry/BB10-Webworks-Packager#246

Reviewed By: Rosa Tse <rtse@rim.com>
Tested By: Tracy Li <tli@rim.com>