bugfix: nil protocol should not throw exception if injection fails.