We cannot perform an Employee saved search or lookup in the Employee center as the employee center has no permission to do the same.
While deploying a script to every role which includes employee lookup/employee search we need to give a proper exception to handle it otherwise it results in an JS_EXCEPTION