Update BaseParser.php

To remove the ErrorException 
Undefined variable: file_extension