catch if opts[:generator] is nil
Merge pull request #37 from tarebyte/fix-nil-error

Bugfix: NoMethodError: undefined method `<' for nil:NilClass