Hopefully fixed a crash (which I can't reproduce)

@hamdullahshash on twitter reported that it was crashing on him, because apparently one of his images is null. I hope this fixes it.