fix #514 possible null pointer crash
fix #514 possible null pointer crash

mltframework/mlt,mltframework/mlt,j-b-m/mlt,j-b-m/mlt,mltframework/mlt,mltframework/mlt,mltframework/mlt,mltframework/mlt,mltframework/mlt,j-b-m/mlt,j-b-m/mlt,j-b-m/mlt,mltframework/mlt,j-b-m/mlt,j-b-m/mlt,j-b-m/mlt,j-b-m/mlt,j-b-m/mlt,mltframework/mlt,mltframework/mlt