Fuck ndm, fuck StreetPass
Based off the conditions, this is a potential null pointer dereference that can occur. We need to check for null before accessing nbPendingNotifications. This is unlikely to occur in common usage, however it's a fairly straightforward amendment.