Fixed bug in SQLStatement objects when param = null

Fixed bug in SQLStatement objects when param = null