Improve error message when a map contains invalid tiles
Add NULL-check for mapping minimap colors

Fixes #1043
Merge pull request #1056 from dorkster/fixes

Small fixes