Handle unloaded buffers when getting prototype, closes #222