Add NPE check to getBlogStatsCredentials