Fix Attribute error when a file is on disk after the handler creation.