title: requirejs dependency loaded even condition is false
body: <p>Why a script tag with the script URL corresponding to require("messages") was injected in HTML file
  <code>&lt;script type="text/javascript" charset="utf-8" async="" data-requirecontext="_" data-requiremodule="messages" src="lib/messages.js"&gt;    &lt;/script&gt;</code>
  even the condition is false ? Thanks.</p>
  
  <p>Here is the code that generates it :    </p>
  
  <pre><code> define(function (require) {
          var bool = false;
          if (bool) {
              var messages = require('messages');
              alert(messages.getHello());
          } else{
              alert("Module messages not loaded !");
          }
      });
  </code></pre>
  
  <p>Tested the code below and noticed that the script tag for loading messages.js is not generated</p>
  
  <pre><code>define(function (require) {    
      var bool = false;
      if(bool){
          var dep = 'messages'; 
          var messages = require(dep);
          alert(messages.getHello());
     } else{
          alert("Module messages not loaded !!");
     }
  });
  </code></pre>
  
  <p>Same here:</p>
  
  <pre><code>define(function (require) {
      var bool = false;
      if (bool) {
          var messages = require('messages', function(messages){
              alert(messages.getHello()); 
          });
  
      } else{
          alert(" Module messages not loaded !");
      }
  });
  </code></pre>