Add exception catching around groovy eval for query parsing