One way to make ft_strlen(NULL) be stopped at compiler-time, is to add this line at the top of the code:
__attribute__((nonnull(1)))
This is an attribute, a GCC/Clang compiler-specific directive that tells the compiler "The first argument to this function must not be NULL".