Since param[:payload] is always nil.

added check logic and change to get data from post body.
Merge remote-tracking branch 'origin/fix_nil_body_issue'