fix display_application with login_required=True
Merged in BjoernGruening/galaxy-central-bgruening/external_display_application (pull request #303)

fix display_application with login_required=True