Fix compare page exception when a submodule changes (issue-375)