encx265: fix chapter insertion.

Checking whether we should attach a chapter to
the output buffer is not enough, we actually
have to attach it too.


git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6176 b64f7644-9d1e-0410-96f1-a4d463321fa5