Avoid duplicating debug message for building a page due to a dependency