Fix a bug in AMI message parsing

Correctly handle messages containing
 * "A:B" (without a space after semicolon)
 * "A:" (like VarSet, where Value is empty)