Fatal error: Call to a member function Close() on boolean

I sure hope someone can help me with this. I have a single record form that I have spent days on getting the formatting and code just the way I needed it. All was working great.
I then linked it to another form via ‘Master/Detail’ feature. Still all was working nicely.
Then I updated the linked form, just removed some of the toolbar buttons. Tested the form as a standalone and worked great,
Now the bad part. The form will not open as a linked in form via the ‘Master/Detail’ feature. It is crashing on a line in the 'applicationName_apl.php file. I have tried everything I can think of and then some. I just cannot spend another 2.5 to 3 days remaking this form.
Any help will be greatly appreciated. Here is the block of code from the file where the error is generated from. The line where the error is as the very bottom, $rs->Close(); When I comment out this line the form will at least open but it will not completely load properly. My linking field is PropId, which I see in the below code.
Again, ANY HELP will be GREATLY APPRECIATED!

      $aWhere = array();
      $aWhere[] = $sc_where_filter;
      if ($this->nmgp_opcao == "igual" || (($_SESSION['sc_session'][$this->Ini->sc_page]['form_adm_clientes']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['form_adm_clientes']['run_iframe'] == "R") && ($this->sc_evento == "insert" || $this->sc_evento == "update")) )
      { 
          if (in_array(strtolower($this->Ini->nm_tpbanco), $this->Ini->nm_bases_access))
          {
              $aWhere[] = "PropId = $this->propid"; 
          }  
          else  
          {
              $aWhere[] = "PropId = $this->propid"; 
          }  
          if (!empty($sc_where_filter))  
          {
              $teste_select = $nmgp_select . $this->returnWhere($aWhere);
              $_SESSION['scriptcase']['sc_sql_ult_comando'] = $teste_select; 
              $rs = $this->Db->Execute($teste_select); 
              if ($rs->EOF)
              {
                 $aWhere = array($sc_where_filter);
              }  
              $rs->Close(); 
          }

SOLVED: This must be a new bug. Seems you can no longer remove all of the Navigation buttons from the lower tool bar and still use the form as a detail in a Master/Detail arrangement. And it must be a navigation button IE: First, Next, Prev, Last. If you add any one of them the error goes away.