Fix error in Dispose method that would itterate through an invocation list even though the handler is null.