#3044 Add nullcheck for xAxis label

Fix for #3044 issue