Made it pass lawnchair-spec tests: Throw exception if cb exists and is not a funcion.