Fail if the map contains no brushes. (Fixes a segfault.)

(Reported by Syphter)