added check for null values
added feature request #135; fixed null pointer exception on decoding submitURL