Fixes bug #3522: Linking images to hidden pages results in click-enlarge