Set $final variable to avoid parsing errors

This has been addressed elsewhere: https://core.trac.wordpress.org/attachment/ticket/15703/15703.diff
Merge pull request #2 from amsross/patch-1

Set $final variable to avoid parsing errors