Within the framework of a one-dimensional model, we calculate electronic spectra and persistent currents of imperfect (containing one or several defects) nanoscale Aharonov-Bohm rings made of Dirac materials like gapped graphene, silicene or germanene. The calculations show that at zero electric field, in ideal structures, such as the defect-free ring or the ring with a defect superlattice, the electron spectrum consists of touching each other magnetic bands or minibands, respectively, with intersecting energy levels at the band (or miniband) edges. Introduction of some irregularity in the system, e.g., a single defect or a defect sequence with arbitrary barrier heights, turns the crossings into anti-crossings at the center and the boundary of the magnetic flux Brillouin zone. In silicene (germanene) rings in axially-directed electric field, extra crossings arise at some internal points of the Brillouin zone due to breaking the spin-valley symmetry. Such crossings do not disappear even in the presence of irregularity. All crossings in the ring spectrum cause the discontinuities in the persistent current depending on the band filling. Replacement of crossings by anti-crossings due to the defect existence in the ring leads to replacement of the current jumps by a smooth dependence on the magnetic flux at low degree of filling. As the Fermi energy rises, the smooth function gradually turns into the discontinuous one completely coinciding with that of the defect-free ring, i.e., the current becomes independent of the presence of inhomogeneity in the ring in the limiting case of high filling.