Make sure we have a dict before trying to reference it's content.