React functional component on change of one of prop value to empty object doesn't re-render / return its JSX