Updated getAvailableActions function of the Permissions Controller and the related functions in the Permissions Model to use the new Error Handler.