Fix undefined behaviour in filesystem_open_write and filesystem_open_read
Fix undefined behaviour in filesystem_open_write and filesystem_open_read

A missing NULL check caused undefined behaviour in filesystem_open_write and
filesystem_open_read

splone/splonebox-core,splone/splonebox-core,splone/splonebox-core