fixed rt-96050; sqlite_db_filename returns an error (instead of segfault) if database connection is closed