Avoid some warnings when getDocInfo returns nil