Fixed two errors in title helper having no caption if cmds empty and with wrong handling of cms without clause