Fixed crashing upon resourceForURL returning null