app_queue.c: Fix error checking in QUEUE_MEMBER() read.