Is liability insurance on property that is not being lived in necessary?

Yes. If anyone is injured on that property, even if there without permission, the owner may be held responsible.