fixes MARMOTTA-300 and MARMOTTA-302
fixes MARMOTTA-303
fixed some further wrong usages of hasStatement and getStatements