NPE check in getTimeInMillis()

added a null check to getTimeInMillis()
and remove the null passed parameters
A user will only be able to get to these methods if it will cast to a MapProxyImpl, so in that sense it is hidden from the user. So in theory methods here can be public because a user can only access it if he dives into the internals.