Fix infinite reload bug for an empty cart