Fixed mapmap to raise an exception if wrong argument type given

- bnc#888585
- build including tests are GREEN