when tabpanel layout animation is 'null' or false 

when tabpanel layout animation is 'null' or false will throw error.
Add a compare to avoid this.