Prevent exception in from_file when user is None

Hi,

Here is another bugfix to prevent an exception with read_authorized and write_authorized in from_file.py when called with a user None.