Fix stylistic issues.
Assert that the dictionary is not nil.