fix nullpointerexception in certificatelist when request nor certificate found (thanks aramv for reporting this) (take 2)