Fix Exp4j crashing with conditionals