fix getblocktemplate for ppcoin. if error passing {} try passing nothing.
pass exception on if not 500 internal server error
Merge pull request #188 from penner42/ppcoin-fix

[FIX] Coind error: Invalid mode for ppcoin, possibly others