Skip any module part that is blank

Getting a `NameError` with `wrong constant name` because it seems to pass to `ActiveSupport::Inflector.constantize` (4.1.beta1) a blank value


[here is some context (backtrace, models and offending call in a controller)](https://gist.github.com/elia/3400212c37a9f6fce2b0)