Do a safer check to see if Notifications are supported

The old method was breaking internet explorer