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
Merge pull request #11 from james-lsn/3.1.0

Fix edge case when error returned is not an array