The licence for the gun found in the possession of Jyoti Gupta was found to have expired a couple of years ago, the officials said