Don't encapsulate when fosterbox is in transclusion.

Fixes a regression introduced in
1dba828d7eddf9f00aea6b47242ecfc4aedcdd07.

Change-Id: I2ebf49406276eeed1c46830b150fccafda5640d3