Handle `get_mapper` on models with no mapper definitions

* Previously caused a script error
Merge pull request #1272 from reciprocity/feature/fix-script-error-on-role-delete

Handle `get_mapper` on models with no mapper definitions