Converted documentHasTitleElement, both pass and fail versions.

Signed-off-by: J. Renée Beach <splendidnoise@gmail.com>