Update AutoCompleteTagLib.groovy

Tidy up of selectSeconday taglib to accept domain as primary object and for backward compatibility - domain2 object changed to domain - also added error checking to selectSecondayNR for domain2 since both domain and domain2 variables required for this function