Fixed 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.