Dipolar-induced resonance for ultracold bosons in a quasi-one-dimensional optical lattice