Fix bug where notification was being checked on nil user