make HTML titles actually useful and existent

I changed one thing that I didn't run locally because I get a ResourceNotFound error: https://github.com/dimagi/core-hq/pull/923/files#L1R7