Added a null check

Added a null check that could produce a warning if strokeWidth was not provided in the POST.