fix(): fix npe introduced in 4939424a30 (#281)

fixes #298