Fix incorrect memory access in script command getareausers.