Check if layout has setActiveItem function before accessing it
Authored by: prudhvireddy 2013-04-09
Parent: [r7109]
Child: [r7111]