Check frontend value for NULL before comparing it
Merge pull request #7 from garbear/fix-null-check

Check frontend value for NULL before comparing it