Added support for empty rules.

Fixes bug #324 be allowing empty bubbles.