Alex.
Undocumented behaviour: if the title is not set (set to empty string, or
display mode not set), the function returns a tuple of length 0. I
think reasonable behaviour here would be to return ('', '') rather than
(). If changing this would break something then it should be documented.