When given an empty output for enroll, discard templates

This instead of saving everything to a memGallery by default, which is of
questionable utility, and can give the appearance of a memory leak when not
expected.
Merge pull request #295 from biometrics/default_gallery

Discard templates on empty enroll output