Test case & bug fix for Request#params to handle empty POST request correctly

Fixes #653.