Fix edge case when error returned is not an array

Sometimes the error returned for a denied permission is "You do not have permissions for this action" and not an array.  This fixes it improperly trying to unshift a string.