Handle None in boto.compat23.ensure_bytes