Fix: prevent preg_match() warnings from occurring if the products page is draft.

Should fix Issue #441.

If the products page doesn't exist (or is a draft), revert to using /product/xyz/ permalinks for products.
Merge pull request #442 from om4james/issue441

Fix: prevent preg_match() warnings from occurring if the products page is a draft