Change action to "Edit summary" if summary exists

Matches the old logic in templates/topic.html.php.

Change-Id: Ia39fb1257950521c033c2a55ab629ae647cf1f64