Catch exception thrown by an empty StyleSpansBuilder