fixed an issue which occurred when a waiter for invisible element was called for a nonexistent element
fixed the issue which occurred for a situation when we wait for an element embbedded into a section and this section is removed
changed the way for fixing an error when a waitor is used for an element embedded into a removed section
small tidy up