Bugfix for when the backing bean property is null and type != both. Thanks to Andrew Thornton for reporting this bug.