Update PushNotification.js

this prevents an error from littering the log when `module` is undefined