Moved notes list cursor close to `onDestroy` of `NotificationsActivity`.

'onDestroyView' is called when a fragment is replaced which is what caused the exception. Fixes #1553