fix $apply exception on showSidebar
Merge pull request #489 from ailin-nemui/sidebar-apply-ex

fix $apply exception on showSidebar