Fix #4471: Undefined index warning with referenced column.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Merge pull request #1254 from Tithugues/QA_4_2_b4471

Fix #4471: Undefined index warning with referenced column.