Fixed bug when attaching merged doc:

* You were allowed to not specify a file which shouldn't happen.