Fixes error in get_total_leased_sharecount_and_used_space

When share_count is 0, used_space will be None. Since the caller should
not have to worry about this, we check before returning the values.