Fixed bug in media url check in addResourceDependancy for added
resources not bound to an element