Updating check on expires key to prevent inserting nil into cache dictionary.