fixes #539 - incorrect index usage when rendering JS call to fill hidden
field
fixes #540 - render orphan field in page part