don't fail for __filename or __dirname for row without id