Fix to error when recently viewed products have been hidden or deleted in back-end