[1.7.x] Make detect_soft_applied exit correctly on non-create migrations