Add underflow check to prevent getParameter to throw ArrayOutOfBoundsException and instead throw a sensical exception.