safeObjectForKey verifies that it is a dictionary