add missing CAutoFile::IsNull() check in main

- also use __func__ in error messages related to block files
- minor comment changes and remove space after function name in log
  messages in touched functions
I reverted that, no problem :).