test: remove a superfluous string-is-null check