Avoid a PHP Notice when the request doesn't contain a User-Agent header
Merge pull request #1294 from dd32/master

Notes Module: Avoid a PHP Notice when the request doesn't contain a User-Agent header