Fix a bug involving an empty set of Modifiers.

EnumSet.copyOf will throw an IllegalArgumentException if the passed Set is
empty. This fix allows the user to emit an empty Set of Modifiers.

Also add a test for this bug.