Fixes blackberry/BB10-Webworks-Packager#246