<!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->

##### SUMMARY
When this playbook is run in an Emacs shell buffer:

```
---
- hosts: all
  tasks:
  - pause: prompt='Foo'
```

It yields this error after the user is prompted and hits Enter:

```
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'NoneType'
fatal: [private-host-elided]: FAILED! => {"msg": "Unexpected failure during module execution.", "stdout": ""}
```

##### ISSUE TYPE
- Bug Report

##### COMPONENT NAME
pause

##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.10.4
  config file = private-path-elided/ansible.cfg
  configured module search path = ['private-path-elided/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = private-path-elided/.virtualenvs/ansible/lib/python3.8/site-packages/ansible
  executable location = private-path-elided/.virtualenvs/ansible/bin/ansible
  python version = 3.8.6 (default, Sep 25 2020, 09:36:53) [GCC 10.2.0]

```

##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
ANSIBLE_PIPELINING(private-path-elided/ansible.cfg) = True
DEFAULT_HOST_LIST(privat-epath-elided/ansible.cfg) = ['private-path-elided/inventory']
DEFAULT_REMOTE_USER(private-path-elided/ansible.cfg) = root
```

##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
Ubuntu 20.10 (Groovy) x86_64

##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->

<!--- Paste example playbooks or commands between quotes below -->
```yaml
---
- hosts: all
  tasks:
  - pause: prompt='Foo'
```

<!--- HINT: You can paste gist.github.com links for larger files -->

##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
I expect the playbook to exit cleanly after it pauses and I hit Enter.

##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->
I get an error.

<!--- Paste verbatim command output between quotes -->
```paste below
PLAY [all] *********************************************************************

TASK [Gathering Facts] *********************************************************
ok: [private-host-elided]

TASK [pause] *******************************************************************
[pause]
Foo:

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'NoneType'
fatal: [private-host-elided]: FAILED! => {"msg": "Unexpected failure during module execution.", "stdout": ""}

NO MORE HOSTS LEFT *************************************************************

PLAY RECAP *********************************************************************
private-host-elided             : ok=1    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   
```

if seconds is None:
                        display.warning("Not waiting for response to prompt as stdin is not interactive")
                    if seconds is not None:
                        
                        time.sleep(seconds + 1)
                    break
                try:
                    key_pressed = stdin.read(1)
                    if key_pressed == intr:  
                        clear_line(stdout)
                        raise KeyboardInterrupt
                    if not seconds:
                        
                        if key_pressed in (b'\r', b'\n'):
                            clear_line(stdout)
                            break
                        elif key_pressed in backspace:
                            
                            result['user_input'] = result['user_input'][:-1]
                            clear_line(stdout)
                            if echo:
                                stdout.write(result['user_input'])
                            stdout.flush()
                        else:
                            result['user_input'] += key_pressed
                except KeyboardInterrupt:
                    signal.alarm(0)
                    display.display("Press 'C' to continue the play or 'A' to abort \r"),
                    if self._c_or_a(stdin):
                        clear_line(stdout)