Fix custom resource loading on admin pages

Used for example on Admin→Plugin→Tools pages.
Merge pull request #3 from macik/master

Thanks, macik!