Better error handling with Photo.get_prefetched_copy()

Throw an Error rather than return null, which wasn't being handled
correctly in all cases.