Pull request to allow nil opts[:prefs]

Corrects a bug introduced by cleanup refactoring in #196.

All tests pass. Generates a no-recipe Rails app without error.