Added error handling for blank answers on math puzzles

Added a try catch block to make sure the response was numeric and assign
a value of 0 if not.