bug #4666 Undefined indexes in table stucture print view of a view

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Merge branch 'QA_4_3'