Maintaining the closed magnetic-field-line topology of a field-reversed configuration with the addition of static transverse magnetic fields