Prevent syntax error in views on empty relationGrid