Fix INCLUDEJS URLs handling

http://tracker.phpbb.com/browse/PHPBB3-11647