Replace product lookups by permalink using where() with find_by_permalink()

This is to aid in compatibility with globalize3

Fixes #2439