Broken link edit

Fixes #362
Ajax cannot send an empty array; it comes over as undefined. We set the first item in the links to 'EMPTY' if the links are supposed to be empty. This was not handled before in the validate