Brushes problem in 5.0.0-beta1

@halla The collection that crashed 5.0.0-beta1 may be one of those mentioned in this post:

@Znicz would be able to confirm that (or not).