Fixing issue with mediabox being a reference

Fixing this: https://github.com/yob/pdf-reader/issues/91