Avoid rasce condition when adding principals

* Trying to add a principal without choosing one from the dropdown
  this leads to 1) one useless invalid request and 2) could lead to a
  race condition avoiding the field to get clearing after choosing one.