Check frontend value for NULL before comparing it

Got another one for ya