OSC: Fix bug: a NULL filename was causing the application to crash