Cura and Octolapse

Cura 4.12 gcode works with latest plugin for OctoLapse.
Cura 5.0.0 gcode does not work with latest plugin for OctoLapse
Have Script in startup in both version of Cura for the printer.

Error Message using Cura 5.0

Octolapse Startup Failed

Error Starting Timelapse

An unexpected error occurred while starting the timelapse. See plugin_octolapse.log for details.

Last few lines of OctoLapse.log

2022-08-01 14:09:38,839 - octolapse.settings_preprocessor - VERBOSE - Process type: reverse, line: 998, gcode: G1 X104.292 Y106.824 E4060.35065
2022-08-01 14:09:38,839 - octolapse.settings_preprocessor - VERBOSE - Process type: reverse, line: 999, gcode: G1 X104.622 Y106.75 E4060.3349
2022-08-01 14:09:38,839 - octolapse.settings_preprocessor - VERBOSE - Process type: reverse, line: 1000, gcode: G1 X104.9 Y106.713 E4060.32184
2022-08-01 14:09:38,839 - octolapse.settings_preprocessor - INFO - Settings preprocessing finished in 0.586687 seconds, but could not detect all settings
2022-08-01 14:09:38,840 - octolapse.init - ERROR - Unable to start the timelapse.
Traceback (most recent call last):
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_octolapse/init.py", line 2427, in on_print_start
timelapse_settings = self.get_timelapse_settings()
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_octolapse/init.py", line 2666, in get_timelapse_settings
success, error_type, error_list = current_printer_clone.get_gcode_settings_from_file(gcode_file_path)
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_octolapse/settings.py", line 682, in get_gcode_settings_from_file
new_slicer_settings.update_settings_from_gcode(new_settings, self)
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_octolapse/settings.py", line 2789, in update_settings_from_gcode
num_extruders = int(settings_dict["machine_extruder_count"])
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
2022-08-01 14:09:38,858 - octolapse.init - INFO - Print cancelling.
2022-08-01 14:09:38,863 - octolapse.timelapse - DEBUG - Releasing job-on-hold lock.
2022-08-01 14:09:38,870 - octolapse.timelapse - VERBOSE - Received: ok N1741 P15 B3