Make the problem handle empty fields and non-integers correctly.

https://edx-wiki.atlassian.net/browse/STUD-344

Don, you will need to merge this into your branch (template removal).