Fix crash when  returns null