Fix analyzer warning (and potential crash)

Easy fix for a potential nil value in a dictionary.