Add lamps command for TIS
Fix NPEs if map is not loaded