Extracting converter assignment

I got a compiler warning when using the latest version of mono(but not previous versions) not being assigned a value.

These changes does two things.

* Separate the assignment of converter from the CanWrite if-statement
* Simplified the code using the null coalescing operator