Add check for psta->aid out of bounds.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>