scan.cc: update_size: handle NULL input