Add underflow check to prevent getParameter to throw ArrayOutOfBoundsException and instead throw a sensical exception.
Merge pull request #36 from MikeMatrix/master

Simple underflow check, for more sensible exception