Fixed potential NPE. Reported by Cyprien Quilici.