Fix has stock record (when fetch related)

When Products wich "stockrecord" param is empty fetched with related fields (stockrecord), product.has_stockrecord return None value, because stockrecord fetched in None value.

This path fixed this problem.