Do not call std find on empty containers anymore and fixed accessing of already released object.
Merge branch 'bug-18286-FixSceneFileReading'