asterisk: AMI_Functions: Fix decoding of empty AccountID fieldWhile at it, convert the code to a loop since we start to have a bunchof fields to check.Change-Id: Ifc0e84a81b24d8ce8194b769a8ff9a0d4f3e85ff