Fix bug in getPanelData for lagged projections
Change order of test of equality to avoid warnings.