discontinue matching on buffer if urilen returns a match failure.
Fix wrong casting of htp pointer.  Fixed it back to (HTPState *) inside
htp utility functions.