Fixed JS bug causing fields to disappear from attachment popup when editing a taxonomy field

Signed-off-by: Elliot Condon <e@elliotcondon.com>