NPE check in getTimeInMillis()

added a null check to getTimeInMillis()
and remove the null passed parameters
+200 :)

But where do you see this method? Perhaps I should drink more coffee.