IDEA-122725
(cherry picked from commit ab2c16b) (r=Maxim.Mossienko)
avoid opening nonclosed cached file bit map
(cherry picked from commit ce4031e) (r=Peter.Gromov)