Added missing if ( !filename ) to defaultLinkAction()