arm: fix a bug in getting data from input buffer of Thumb: bail out if not enough data