Exclude the product_cat custom rewrites from the rewrite_rules_array

This closes the #4844.

I am not sure if this is the best place to put this function... But we have nothing to handle the rewrites.