EDIDE-104 Select first task window on file opening
one more NPE fix [^batrak]