Fix fatal error on bundle and controller generate
Merge pull request #426 from ddalmais/fix-fatal-on-generate-bundle

Fix fatal error on bundle and controller generate