Added checking for non existing generation for the given generation ID