Add a check for None vaules to _check_file_readbility

Signed-off-by: Amr Ali <amr@databracket.com>