Fix for a potential crash introduced by b3d9bd925b451289683558f7a4fc9b13de98cf17

Signed-off-by: Tk-Glitch <Ti3noU@gmail.com>