getblockhash: throw JSONRPCError (not runtime_error)

I'd use RPC_INVALID_PARAMETER.