Fixed a segfault from getting the length of Needleman-Wunsch alignment without the gaps