unbreak created and destroyed callbacks

there is no DomRange available then, so don't
set firstNode and lastNode on the template instance