Added catch in has_valid_access_params? method to return an error to the response hash, instead of raising an error that crashes the app.