Fix simplification of collections with empty items (#519)