MDL-43684 Course: Correct showing and hiding of resources on drag/drop

This was caused by an issue with String casting in JavaScript.
In JavaScript, "0" evaluates as a truthy value.