[GH-87] tighten up check for null argument in setBtnClasses