Fix crash with empty attribute list

When opening the attribute dialog of a feature with no attributes, QGIS crashes (since `mypInnerLayout->itemAtPosition( 0, 1 )` is `null`). This patch correctly handles this case.

Funded by Sourcepole QGIS Enterprise.