Fixed issue with correct plugin status not always being properly returned.