Trapping and Acceleration of Nonideal Injected Electron Bunches in Channel-Guided LWFAs