Modified all getter (of optional attributes) to return empty entities when field is not set.

Modified getDataTag, getDataArray, getSimpleTag and getSource so that they return an empty entity if the according field is not set. The "size_t" overloads now use the string version instead of own code.