Ensure details is a hash before doing a key lookup.