reject promise on null