fix REST.php - correct the debug logging in execute method for non-GET methods

After my last commit non-GET requests miss the parameters in the debug section logging.

This fixes the issue.

As far as I understood - this is BC fix: refs #659
Merge pull request #660 from sheershoff/master

fix REST.php - correct the debug logging for non-GET methods