[MD]: fixing null domain check