filter out the undefined elements for indicator attributes array - required when user has selected less than 6 attributes