Fix null pointer in fs-pipe