Implement fix for gmail.get.unread_emails() and friends.
Implement fix for gmail.get.unread_emails() and friends.

As implemented by @hzb on Github in https://github.com/KartikTalwar/gmail.js/pull/570.

TODO: Returns NaN instead of 0. Should be fixed.

KartikTalwar/gmail.js