Examples update

Examples updated to avoid possible null reference exceptions in the parameter filter (calling a method on an optional parameter.)