builtin-apply.c: do not set bogus mode in check_preimage() for deleted path