ada: Fix a crash on incomplete input

Found by `noise`.