fixes #945 - bundledId of undefined

Thanks, @kinghenry3, @bootstraponline!