Handle `get_mapper` on models with no mapper definitions

* Previously caused a script error