Not a bug; those are the rules of chess. Your opponent can't win because he's out of time, but guess what? You can't win either because you lack the material to give mate. So it's a draw. There have been many threads on this:
http://www.chess.com/forum/search?keyword=insufficient+material
.