It's not a bug. A lone king is "insufficient material" if the opponent is the one that runs out of time.
Think of it this way: Player A can't win because they ran out of time. Player B can't win because they don't have checkmating material. Since neither player can win, the result is a draw.
the system sometimes judges a game to be a draw with insufficient material, even though one of the people ran out of time, and there is plenty of "material". See my game:
http://www.chess.com/livechess/game?id=923215968