added check of existence of user agent to avoid crashing if none exists
added check of existence of user agent to avoid crashing if none exists

au-research/ANDS-Registry-Core,au-research/ANDS-Registry-Core,au-research/ANDS-Registry-Core,au-research/ANDS-Registry-Core,au-research/ANDS-Registry-Core