gnl: don't segfault on empty file