Checking main event loop invariants
Correcting behaviour of event descriptor removal

Originally removing event descriptor from storage wasn't performed if
user supplied NULL. This, however, is not desired behaviour. It has to
be removed always when removing is supported.