Limit cycles of planar discontinuous piecewise linear Hamiltonian systems without equilibria separated by nonregular curves