configfs: move the dereference below the NULL test