Update template file to exit if accessed directly

Noticed this missing, wasn't sure if it was intentional but thought it
best be added.
Merge pull request #5700 from bryceadams/master

Stop people accessing wrapper-end.php directly