Fix a potential issue (#365). If the UIImage passed as param is nil, this inline function will return a non-nil instance of UIImage

See #365 for details