Use none empty text for reference boxes in documents