Fixes #97 - Null check on userAgent header