NPE check in getTimeInMillis()

added a null check to getTimeInMillis()
and remove the null passed parameters
It's in MapProxySupport. 
MapProxySupport is package private, but it has public non-final sub-classes -> the getTimeInMillis() is effectively protected -> it's part of API.