Only use notification center if it is available.
Merge pull request #132 from Mossop/notification-check

Fixes #129: Only use notification center if it is available.