Fix script crash on no data sent

retrievePost now returns an empty string on two possible no post input
conditions. So 99.9% less crashing when no data is sent by the client.