Improved beam-based method for RF photo gun stability measurements