Adding error checking in parsing and evaluating of FunctionParser functions