Added comprobations regarding references to scripts and objects

Specially when using FindWithTag. All the searched objects should be
present when we look for them in a normal execution, but better safe
than sorry.