I had this problem too and it was the 4 wire cable that goes through a boot floor grommet. The connector had come loose and was intermittently dropping the gauge to completely empty. Go over a bump and it flies back up again to wherever the level of petrol in it is.
If that is indeed the problem, try soldering the 4 wires and get rid of the connector. Seems to have fixed mine.