fixed message

*in MainPageView.cs, fixed a message register/unregister bug which
prevented the ApplicationBar from being hidden in the case that the user
tried to logout after visiting an other page
( MainPage -> plan -> MainPage -> logout => AppBar still visible )