ActionDialog: Allow errors to be jQuery objects

Change-Id: Id17d150d7b2eed5f53e53beee94c34cbe1a9bbea
Merge "ActionDialog: Allow errors to be jQuery objects"