userportal,webadmin: fix error translation

- Fixed issue where canDoAction messages where not being properly
translated.
- Updated unit tests to properly test for issue.

Change-Id: I8b8218aa3190c4b5516bbdc261804c418cdb2ef5
Signed-off-by: Alexander Wels <awels@redhat.com>