don't try to create an mmap for empty files.
log error before failure if in_file_path is None.

sqlalchemy seems to eat those exceptions.