Fix potential NPE on condition check in the install-kar goal