Fix for get_classes when used with non-Oscar modules

get_classes allows imported_oscar_module to be None.
imported_oscar_module ends up in modules in _pluck_classes, however the
code is not prepared to handle None at that place.

Fixes #1160.

Thanks to @mberthau for reporting and supplying fix.