Fixes the global variable shadowing

Before the global WPCOM_sharing_counts variable was being shadowed by the local one, hence none of the URLs were loaded. Also added a check to make sure the global variable is not overwritten. At the moment of creating this PR ManageWP.org was not responding, so I couldn't check if the counts work, though.