Corrected error when no empno is passed