isUsingSources(attached, sources) always return false if attached is null

Comment From: mhalbritter

Thanks!