core: Fix deletion of resources.
core: Fix deletion of resources.

@kaos broke it in ae823f4a82e5529c73593f8a7c80ba96771c72fc

erlanger-ru/erlanger-ru.meta,erlanger-ru/erlanger-ru.meta,erlanger-ru/erlanger-ru.meta,erlanger-ru/erlanger-ru.meta,erlanger-ru/erlanger-ru.meta