CRM-15524 - Avoid loading profileSelector scripts in ajax mode