Make detect_soft_applied exit correctly on non-create migrations