Fix error checking input projects length in gerrit