Fix error/warning in closure.

Mirroring https://github.com/Islandora/islandora_solution_pack_collection/pull/107