Interaction of the $\Theta^+$ with the nuclear medium