Fix getter and setter of time

Fix the `not getSource method ` error triggers by getTime function when the layer is an ol.layer.Group.