ALII-4700 Tighten up the error checkout of input parameters in lwip_cyassl

@raensink @karlj-spindance please review.

Signed-off-by: Mike Stitt <mikes@spindance.com>