Patched NPE in web script client

NPE was being thrown in web script client if the properties object was
null, added check to exception throw.