Can you describe, with environment do you have, Multisite or single-site and where you see this error message.
This source get always the option key, it should always have a value or NUll – return array_key_exists( $key, $adminimizeoptions ) ? $adminimizeoptions[ $key ] : NULL;
.
Thanks.