Fixes issue when RunFunction tries to run a non-registerd command.