Inertial corrections to the matching condition for tearing modes