[fix] if no transform:before hook is available, optimizer should be passed reference to Pagelet