Fix activeRequests hash
Add error checking, so server doesn't crash if there's a latex syntax error