fix rpc console crash in non server mode

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