fix api mystery crash

Fixes a delete-pad-API crash with already deleted pads.. I really don't know what happened to get this.