Issue #3416700 by catch, penyaskito, lamp5: Handle invalid compressed ajax_page_state more gracefully (cherry picked from commit bfaae1b1)