Prevent crash when pressing "Mark as Read" on the notifications page
This is easy to do on a slow Internet connection, before the notifications page fully loads. Now there's some protection by disabling the button while loading and some checks on the C++ side.