Fixed when attribute is null to return empty array.