providers/aws: proper DefaultFunc to return nil if no env