Fix segfailt on old popler versions.