flatten: Fix undefined error, because node.minifiedSource sometimes can be undefined.
Bundle flattening logging fix

This fixes a problem that was occuring when flattening bundles. We were
passing in an array of bundle string names to name.getName, where
name.getName actually expects the bundle itself.
Merge branch 'multi-build-errors' into sams