#331 - add null check so that it doesn't call service if passes in a null contentType