Update pf_template.class.php

small bug when extending empty blocks