Potentially fixed error caused by PandasTools if pandas is not installed

I was not fully able to reproduce the error reported on the mailing list today, by I assume it is caused by carelessly referring to pandas outside of the try block or a function definition . This should be fixed with moving the call into the try clause.