fixes #945 - bundledId of undefined
Merge pull request #947 from rockbot/bundleId-undefined-error

fixes #945 - bundledId of undefined