Fix fragile tile position lookup
There is an issue when Trivabble is served as text/html, which adds a
tag in the DOM, while this tag is not added when trivabble is served as application/xhtml+xml.There is an issue when Trivabble is served as text/html, which adds a
tag in the DOM, while this tag is not added when trivabble is served as application/xhtml+xml.