Wales earn late draw against Northern Ireland