Assert that ResourceLoader modules loaded successfully

https://bugzilla.wikimedia.org/show_bug.cgi?id=44299

Change-Id: Iadda6170fda2bbc5cf40e65253b360c7eda58481