Fix #816: Regression: XIncludes in sandbox-tags result in PHP segfaults