Revert "fixed nullPointerException on getTotalIssueCount"

This reverts commit 196908f534355199a98e2b8cbc43507655205086.