fix- Typo and Catch

I was getting hundreds of errors on on page from perhaps an invalid value.  I wrapped section in a try/catch and fixed a typo which had a double semi-colon
Merge pull request #2 from btesser/patch-1

Thanks!!