Finish non-existent API calls instead of timing out

Running a non-existent API query causes a time out instead of presenting an error.