fix non-read pre event hook for other templates

This fixes the problem of empty core backend js files
and not properly executed ckeditor inits with other templates.

References #72
closes #72