Fix a null pointer (a previous issue)

Sorry I completly forgot to request a pull.