Prevent 'PHP Catchable fatal error:  Argument 1 passed to xPDOObject::load()' error on fetching thumbnail from cache

Prevent modPhpThumb causing an error when the session hasn't been written/closed prior to the exit() when fetching a thumbnail from the cache.