Remove unused variable in handle_sendnodes

Fixing some minor CppCheck warnings.