resourceloader: Only conditional-wrap script responses with only=scripts