Assembly.GetEntryAssembly() can return a null, check for this