fix #702 PageEngine: can't use custom animation for page transition

Solved the undefined issue for custom animations