Fix gmxtest.pl error code

Without this, @work was empty for (say) "./gmxtest.pl -tight", and
so $nerror was undefined.

Change-Id: Iec611c4a71ed31cba8c4ad6d34382dcd12472a4b