Not entering a duplicate_of id caused Maslow to error

Found this existing bug while testing @fofr's admin template PR.

Maslow users that try to close a need as a duplicate without entering a need ID raises an error that is shown to the user.