set default casing to NULL, check for empty casing name in range.cpp

fix for #4593