[#917402] Ensure we properly update the title from the markup before fro...

...m the previous title.