Prevent undefined callback error

If the same callback() is called multiple times from the server, then the client ends up with "TypeError: fn is undefined", due to the fact that the acks object is updated (client callback is removed) after the first call.