USB rio500.c: fix check-after-use