Add waytype test for encoder type foot. Remove superfluous try/catch block.