[BUGFIX] Fix PHP Warning in updateRefIndexTable()