Protect getValue() for case where the key is missing.