nfsd4: fix test_stateid error reply encoding

If the entire operation fails then there's nothing to encode.

Change-Id: I2368f4c6142612841fd6e4feaa00252ab551faf6
Cc: stable@vger.kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>