Fixed mapmap to raise an exception if wrong argument type given

- bnc#888585