The ResourceManager getResourceUrl regex fails:
preg_match('#^(?:/|[a-z]:/).*$#i', $filename) === 0
when given an absolute URL (custom theme).
What is this supposed to do? Maybe a replacement such as:
preg_match('/^(https?)?:///', $filename)
could work?