mw.loader: Add debugging for mw.loader#canExpandStylesheetWith

Reports indicate something is incorrectly calling this, causing
uncaught exceptions. This will give us a stracktrace.

Change-Id: I34a488247186677f3bb627a2f1dc4faac4dd2e9b