Fix modeler initialization as createAtoms() has changed

[#50074251]