rapidio: fix potential null deref on failure path