page: catch exceptions in placeholder scripts