Fix issues with artifacts in certain gif frames.
Avoid NPE loading null or empty urls.