Changed condition to check accordion insert index. Otherwise it will fail to insert at 0th position
Authored by: prudhvireddy 2012-03-28
Parent: [r6126]
Child: [r6128]