SubmitBlock patch to fix Internal Server Error 500

This patch was created by the owner of the pool http://eac.hackshardgaming.net

It is a fix for all pools earthcoind daemon to get rid of the Internal Server Error 500.