GUI-1154: Set custom policy name only when a policy statement is selected...

... and restore selected policy statements when switching back to custom policy tab after a canned policy is selected.

Fixes https://eucalyptus.atlassian.net/browse/GUI-1154