fixed typo in contact.html.twig; removed unused code in BaseExtension.php