Update mapstitch.cpp

When target distance is small, H (transformation matrix) is empty. The program returns a "Core dumped" error and fails without control.