Fix three nits found by Coverity, adding null checks and comments.
1 file changed