More fixes for LMS import, particularly with detecting empty channels