Fix error checking in uxstore.c: add a missing check, and fix a