Fix internal server error in jobqueue view