If `lncli profile remove` is called when there are no existing profiles, it will cause a "cap out of range" panic. So in this commit, a length check is added to avoid this.
If `lncli profile remove` is called when there are no existing profiles, it will cause a "cap out of range" panic. So in this commit, a length check is added to avoid this.