AP_GPS: prevent bad NMEA strings from causing overruns in parser

fixes issue #961

thanks to crashpilot100 for spotting this!