An upper bound on the exceptional characteristics for Lusztig's character formula