[skip ci] make sure styles and scripts are only loaded once

refs https://github.com/owncloud/core/issues/12743

- [x] make sure js and css are added only once