Fixed errors when physics engines are disabled.