Fix custom resource loading on admin pages

Used for example on Admin→Plugin→Tools pages.