Fix null handling in label getter