Fixed a PHP exception in _validateNullOrEmtpy