Update MainWindow.java

Found a crash while running app in Samsung Tab 3 and it shows Null pointer exception for the cursor in loadUnreadCounters method so added condition to check cursor is null or not.And after adding it is working fine.