Reported upstream: https://secure.phabricator.com/T6393
As you can see at T898, Phabricator allows repeated merges. This is kind of silly and unexpected. If a task is already closed and marked as a duplicate, it probably shouldn't be possible to re-merge it into a task where it's already been merged.