Fix bug causing parser to fail when parsing empty dictionaries: #369 #370 Fix bug causing index out of bounds error to be thrown when removing certain pages in certain documents: #376 #378