Check SearchCommand is not null.