Fix FB share count error

"TypeError: Cannot read property 'share_count' of undefined" occurs in some cases, specifically if working on localhost. Fix is to add a null check and assign share count to be 0 if res[0] is undefined.