REST API: Consistent get field mapping response

If a get field mapping request is issued, and all but the field can be
found, the response should return an empty JSON object instead of a 404.

TODO: This uses exceptions to handle this specific case. By using exceptions
there might be problems with rolling upgrades. Not sure yet, if this is
the best approach.

Closes #4738