Bug fix: export PDF buttons causing errors on resourcename/* pages