Stability of the magnetic domain structure of nanoparticle thin films against external fields