Fix #18 check for viewstate existence
Merge pull request #19 from jeffora/master

Fix #18 - Check for viewstate existence