check if sql state is null; the jdk permits null sql state and we dont always set it