event/sw: fix credit return on invalid queue id