Fix anonymous digging of non-empty machine

The quarry was causing crashes when it reached a machine that was
undiggable due to containing items.