Fixed null loops when loading quest tasks
Fixed a stack overflow error when loading quest types.