Fixed issue #2772: Comparing with added file might result in comparison with empty...