Here is a commit that fixes it:
https://github.com/aerogear/aerogear-unifiedpush-server/commit/fa74eea6a183d852fb26773bb1b62cf9016c9157