Refactor #10139 Show templateWarning message when only documentDirty
http://tracker.modx.com/issues/10139