fix broken link on app management page for apps without ocsid 

fix #9574 fix #10461 

cc @PVince81 @georgehrke @karlitschek @nazar-pc @donniezazen @cosenal @LukasReschke 

@karlitschek This is against stable7 and is only valid for OC7. I would like to merge this not before 7.0.4 is out. 

~~:warning: Keep the stable7 freeze in mind~~ ;)