Check that battery plugin is enabled before calling battery functions in demula theme