GEOS-6476: Fixing NPE on animate requests on WMS-EO plugin.Backport to 2.5.x

GEOS-6476: Fixing NPE on animate requests on WMS-EO plugin.Backport to 2.5.x