Crash on empty pdf hex string corrected