Stock item inventory fix (issue #4651)

Fixes https://github.com/spree/spree/issues/4651 by checking for active variant and returning false if associated variant has been deleted. This seems like the most reasonable approach in this case, because there's no reason to track inventory for a deleted variant, regardless of its original settings.