mw.loader: Don't create addScript() callback if we don't need one

$.Deferred#always ($.Callbacks#add) ignores undefined/null. No
need to create an inline function that does nothing.

Change-Id: Ifd96ac13e03242279e7d584cf91d899adadfed91