Fix an issue with returning a non-interface nil value which is assigned to an error type, making it a non-nil interface