bugfix: check renderpg hash before hinting page

This patch fixes the crash problem in pdf/djvu readers. Multiple same renderpg hashes could be used to indicate only one tile cache without this check, which will cause crash when the tile cache is freed multiple times.