Fixed JS error on showing errors in customActionClicked