LPS-33345 only update modifiedDate when we have modified the layout