Add totalNumberOfProblems and thisProblemIndex
check on null before the other conditions
Merge pull request #31 from mibrahim/master

Add totalNumberOfProblems and thisProblemNumber. Check NULL before comparison