Fix PHP notice on template editor