#731344 by fp, rfay: fix preg_match() expects parameter 2 to be string, array given problem when empty profile field.