Fixing the bug unveiled in OSCPA/Store-Pathfix#467.