Fixed issue where media nodes inside anything but root or rule nodes (e.g. mixins,
loops) would either recurse infinitely or generate a fatal error.

Also fixed an issue in the same code where media nodes in loops were only parsing
their tokens once so variables inside the @media rule would only get evaluated on
the first pass through the loop.