A salvager drone shouldn't even attempt salvaging if it isn't hooked up to cargo (chest). And also give some notification if that's the case, that pop up red text over factories that run out of power could be used here, but instead it pops up over the salvage module?
Either way, it should stop mining if it doesn't have a linked cargo, or if there's no room left in there.