rpc console command fix

corrects the crashing of rpc console with getblocktemplate getwork
getwork2 and other commands