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.
Test on 2.3.1