Fix error handling of Ajax add to cart feature