handling null responses when doing scans