Medium: mysql: handle $secs_behind = NULL

compression of commits in #98.