Fix for inability to change permalinks for categories and products

This fixes issue 2245:
https://github.com/ingenesis/shopp/issues/2245