Fixed possible NPEs in AISFrame.