Fixed 'NSInvalidArgumentException' when trying to store nil object to NSCache

Fixed 'NSInvalidArgumentException' when trying to store nil object to NSCache