Good find, Fabian. I can confirm that the same error happens inside an openVZ container.
With LXC, the default TERM can be set permanently in the config file for the container.
cat /var/lib/lxc/105/config
.......
lxc.environment = TERM=vt100
.......
Both TERM=vt100 and TERM=vt102, as well as...