fix #3471: avoid null being possible in the interface

This change also prohibits the same error to occur again in another
implementation of the same interface and should therefore be preferred
to just checking for null in the current interface implementation.