Simplifies and centralizes error checking and reporting.
It was misnamed from the beginning and has no relation to GimpImageMap except that it happens to be used by GimpImageMapTools. Now it feels less weird to potentially use it for other settings too.