Fix for #523 NullPointerException - correctly removing consumer from map of consumers in a specified network.