Fix an issue related to 'nil' is the value of dictionary literal that
causes the app dies.