LPS-43335 Set the attribute liferay-ui:error:exception only when is a instance of Exception