I've already made the decision to stick to "wouldn't have been necessary," but I wanted to double check. For a little more context, the full sentence is as follows:
She filled the printer with paper, but if [this] had happened then it wouldn't have been necessary.