Committing fix for Issue #4 - added null check for doPost and doPut on request data