MDL-40811 JavaScript: Cast activityid to string when checking resources to show/hide