use title if text is empty (fix #419)