Allow passing 0 in the $time argument of getCode() method. Currently it uses a !$time condition but it should be $time === null. 0 is a perfectly valid timestamp/counter value.