initializers: add extensions for NilClass

Signed-off-by: diditclear <didyourupgradeclear@gmail.com>