Fixed #3044 causing JS errors in some cases when axis label formatter returned null or undefined. Closes #3050.