Contains is explicitly false if actual is undefined or null

Fix #627