Add more better checks and fix missing href reference in export title generator