Fix some crashes. Updates and update notifications work again now. Fixes #281.