Enable support for passing nil to +createInContext: 

see #546