Fix bug in checking attributes for missing panel data