nil-safe AMI integer decoding