preventing blank rows from causing NPEs

adding more friendly error messaging for uploads (fix for #4)