Adding check to prevent long log messages

When you use data uri's in our asset manager it will cause a large amount of messages in the console. This check should keep the same work flow without having to try to resolve the problems.