Invalid library IDs should 404, not return a useless error message