fixed location dropdown to not include address undefined if an address doesn't exist and checked test coverage