Fix for change in thanks page handling by new version of WC