nfs4: fix handling of illegal operations

make the logic simpler and fix NPE.
Triggered by pynfs testsuite

Acked-by: Paul Millar
Target: master