Added the missing empty details guard to constructor.