handle undefined post data