Fix NullPointerException when deinterlace mode is null.

A null value is used to turn off deinterlacing.